
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Grebok.Common;
using Grebok.Common.Configuration;

namespace EVegetable.Persistence.Test.DataManager
{
    public class TeBiz_GoodsCategoryManager : BaseManager
    {
        #region private field

        private static TeBiz_GoodsCategoryManager manager;
        #endregion

        #region Properties
        
        public Int32 GCatetoryID
        {
            get { return GetConfig<Int32>("GCatetoryID"); }
            set { SetConfig<Int32>("GCatetoryID", value); }
        }
        
        public String GCCode
        {
            get { return GetConfig<String>("GCCode"); }
            set { SetConfig<String>("GCCode", value); }
        }
        
        public String GCName
        {
            get { return GetConfig<String>("GCName"); }
            set { SetConfig<String>("GCName", value); }
        }
        
        public String GCDescription
        {
            get { return GetConfig<String>("GCDescription"); }
            set { SetConfig<String>("GCDescription", value); }
        }
        

        #endregion

        #region Constructor

        /// <summary>
        /// TeBiz_GoodsCategoryManager
        /// </summary>
        private TeBiz_GoodsCategoryManager()
        {
            IApplicationConfiguration configuration = ApplicationConfigurationFactor.CreateApplicationConfiguration();
            appPropertiese = new ApplicationProperties(configuration[PropertiesConst.TEBIZ_GOODSCATEGORY_PROPERTIES_FILE_NAME_KEY],
                configuration[PropertiesConst.TEBIZ_GOODSCATEGORY_PROPERTIES_SECTION_NAME_KEY]);

            appPropertieseValues = new Dictionary<string, object>();
        }
        #endregion

        #region TeBiz_GoodsCategoryManager Instance

        /// <summary>
        /// TeBiz_GoodsCategoryManager's Instance
        /// </summary>
        public static TeBiz_GoodsCategoryManager Instance
        {
            get
            {
                if (manager == null)
                {
                    manager = new TeBiz_GoodsCategoryManager();
                }
                return manager;
            }
        }
        #endregion

    }
}
